package com.dailyblue.java.spring.ioc.demo6;

import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Lazy
@Scope(value = "prototype")
public class DemoA {
    static {
        System.out.println("DemoA类被加载了！");
    }
    public DemoA(){
        System.out.println("DemoA类对象被产生了");
    }
}
